package com.chefu.order.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

/**
 * 提供接受订单参数的DTO
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderDTO {

    @NotNull
    private Long merchantId; //服务商编号
    @NotNull
    private String shortName; //商家名称
    @NotNull
    private String merchantPhone; //商家电话
    @NotNull
    private Long userId; //车主编号
    @NotNull
    private Long carId; //车辆编号
    @NotNull
    private String orderPerson; //联系人
    @NotNull
    private String orderPhone; //联系人电话
    @NotNull
    private String describes; //预约描述
    @NotNull
    private String orderTime; //预约时间
    @NotNull
    private Long price; //金额
    @NotNull
    private String serveIds; //服务项目集合
}
